package com.gtw.modules.base.service.impl;

import com.gtw.modules.base.service.TbDistrictService;
import com.gtw.modules.dao.TbDistrictDao;
import com.gtw.modules.entity.TbDistrict;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/** 区域接口实现
 * Created by wuye on 2018/1/26.
 */
@Service
public class TbDistrictServiceImpl implements TbDistrictService {

    @Autowired
    private TbDistrictDao tbDistrictDao;

    @Override
    public List<TbDistrict> findByCityId(int cityid) {
        return tbDistrictDao.findByCityId(cityid);
    }

    @Override
    public TbDistrict findByDistrictId(int id) {
        return tbDistrictDao.selectByPrimaryKey(id);
    }
}
